<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:body>
        <div class="change_contai">
            <div class="cn">
                <h3 style="color: #3F8AAC; margin: 5px 0 0 100px;">Add New Applicants</h3>
                <p style=" margin-left: 5px;">Fields marked with <i style="color: red;">*</i> are required. <br/>Click 'Add' after you have finished making the changes.</p>
                <form name="form_Profile" id="" action="#" method="post">
                    <table>
                        <h:form>
                            <tbody>
                                <tr>
                                    <td style="text-align: right;">Name:<i style="color: red;">*</i>&nbsp;:</td>
                                    <td><h:inputText tabindex="2" size="20" value="#{applicantManagedBean.applicant.applicantName}" /></td>
                                </tr>
                                <tr>
                                    <td style="text-align: right;">Phone:<i style="color: red;">*</i>&nbsp;:</td>
                                    <td><h:inputText tabindex="2" size="20" value="#{applicantManagedBean.applicant.appPhone}" /></td>
                                </tr>
                                <tr>
                                    <td style="text-align: right;">E-mail:<i style="color: red;">*</i>&nbsp;:</td>
                                    <td><h:inputText tabindex="2" size="20" value="#{applicantManagedBean.applicant.appEmail}" /></td>
                                </tr>
                                <tr>
                                    <td style="text-align: right;">About:<i style="color: red;">*</i>&nbsp;:</td>
                                    <td><h:inputTextarea cols="25" rows="5" value="#{applicantManagedBean.applicant.appAbout}" /></td>
                                </tr>
                                <tr>
                                    <td style="text-align: right;">Status<i style="color: red;">*</i>&nbsp;:</td>
                                    <td>
                                        <h:selectOneMenu value="#{applicantManagedBean.applicant.appStatus}">
                                            <f:selectItem itemLabel="Not in Process" itemValue="1" ></f:selectItem>
                                            <f:selectItem itemLabel="In Process" itemValue="2"></f:selectItem>
                                            <f:selectItem itemLabel="Hired" itemValue="3"></f:selectItem>
                                            <f:selectItem itemLabel="Banned" itemValue="4"></f:selectItem>
                                        </h:selectOneMenu>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="text-align: right;" ></td>
                                    <td>
                                        <h:commandButton value="Add" action="#{applicantManagedBean.addNewApplicant}"/>
                                        <h:commandButton value="Reset"/>
                                    </td>
                                </tr>
                            </tbody>
                        </h:form>
                    </table>
                </form>
            </div>
        </div>
    </h:body>
</html>

